package com.freejy.ecommunity.mapper;

import com.freejy.ecommunity.model.Topic1;
import com.freejy.ecommunity.model.TopicExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface Topic1Mapper {

    int countByExample(TopicExample example);

    int deleteByExample(TopicExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Topic1 record);

    int insertSelective(Topic1 record);

    List<Topic1> selectByExampleWithBLOBsWithRowbounds(TopicExample example, RowBounds rowBounds);

    List<Topic1> selectByExampleWithBLOBs(TopicExample example);

    List<Topic1> selectByExampleWithRowbounds(TopicExample example, RowBounds rowBounds);

    List<Topic1> selectByExample(TopicExample example);

    Topic1 selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Topic1 record, @Param("example") TopicExample example);

    int updateByExampleWithBLOBs(@Param("record") Topic1 record, @Param("example") TopicExample example);

    int updateByExample(@Param("record") Topic1 record, @Param("example") TopicExample example);

    int updateByPrimaryKeySelective(Topic1 record);

    int updateByPrimaryKeyWithBLOBs(Topic1 record);

    int updateByPrimaryKey(Topic1 record);

    Topic1 findById(Long id);

    List<Topic1> findByUid(Long userId, Integer start, Integer num);

    int countByUid(Long userId, Integer start, Integer num);

}